package com.yishun.springboot.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.yishun.springboot.pojo.TbPage;

@Mapper
public interface TbPageMapper {

	Integer addMultiPage(@Param("pageList") List<Map<String, Object>> pageList,
			@Param("roleIdOrUsername") String roleIdOrUsername);

	Integer delTbPageRole(@Param("roleIdOrUsername") String roleIdOrUsername);

	Integer addTbPage(@Param("pagerank") Integer pagerank, @Param("pageName") String pageName,
			@Param("pageLocation") String pageLocation);

	Integer upTbPage(TbPage tbPage);

	Integer delTbPage(@Param("pageId") Integer pageId);
}
